<%@tag description="Auction Left Side Navigation Tag" pageEncoding="UTF-8"%>
<%@ include file="/taglibs.jsp" %>
<div id="teachernav" class="cell">
    <div class="sectionTitle" style="margin-bottom: 5px; margin-top: 28px;">Auctions</div>
    <ul class="gradelist">
        <c:set var="lastGrade" value=""/>
        <c:forEach items="${actionBean.gradeMap}" var="e">
            <c:set var="selected" value=""/>
            <c:if test="${e.key == actionBean.teacher.grade}">
                <c:set var="selected" value="class=\"selected\""/>
            </c:if>
            <li ${selected} style="font-size: 90%;">${e.key.grade}</li>
            <ul style="padding-left: 5px; padding-bottom: 5px;">
                <c:forEach items="${e.value}" var="t">
                    <c:set var="selected" value=""/>
                    <c:if test="${t == actionBean.teacher}">
                        <c:set var="selected" value="class=\"selected\""/>
                    </c:if>
                    <s:url var="url" beanclass="pkg.action.ShowAuctionActionBean">
                        <s:param name="teacher.id" value="${t.id}"/>
                        <s:param name="viewTeacher"/>
                    </s:url>
                    <li ${selected}><a href="${url}">${t.fullName}</a></li>
                </c:forEach>
            </ul>
        </c:forEach>
    </ul>
</div>

